home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat7 / pckeyboard.z / pckeyboard
Encoding:
Text File  |  2002-10-03  |  25.7 KB  |  801 lines

  1.  
  2.  
  3.  
  4. ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))                                                    ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      pckeyboard - keyboard specifications
  10.  
  11. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.      The Indy, Indigo2, O2, OCTANE and Onyx2 systems use an industry-standard
  13.      PC-compatible keyboard with a PS/2 style (6 pin mini-DIN) connector.
  14.  
  15.      The keyboard connects to the back of the system unit with a shielded
  16.      partially coiled cord and is detachable at the system cabinet only.  The
  17.      system communicates with the keyboard via a clocked serial protocol.  SGI
  18.      uses keyboard scan code set 3, which sends a scan code on key press and a
  19.      "break" code followed by repeating the scan code.  Every key has a unique
  20.      scan code.  All keys function the same way, allowing the system software
  21.      to use keys in any manner.
  22.  
  23.    CCCCoooommmmppppaaaattttiiiibbbbiiiilllliiiittttyyyy
  24.      Most PC keyboards work out of the box (they may require a 5 pin DIN to 6
  25.      pin mini-DIN) if they match the normal 101-key layout.  Keyboards with
  26.      different or extra keys may require tuning of keyboard map.  The
  27.      following keyboards have been tested (some only briefly) and seem to
  28.      function correctly:
  29.  
  30.           SGI Indigo keyboards (US and several international models)
  31.           SGI Indy keyboards (US and several international models)
  32.           Kinesis ergonomic keyboard, Model 100, 110, 120 and 130
  33.           Comfort Keyboard System
  34.           IBM PS/2 Model M (P/N 1391401)
  35.           IBM 101 Key Keyboard with Trackpoint II - PS Style (P/N 92G7461)
  36.           Microsoft Natural Keyboard
  37.           Compaq enhanced II keyboard, domestic/101
  38.           Qtronix QX-601R
  39.  
  40.      Some keyboards that are known not to work, or require minor changes:
  41.  
  42.           Lexmark M13 (Select_ease) - Does not always power-on correctly.
  43.                      See nogfxkbd option in _p_r_o_m(1m).
  44.           Data Hand - Newer versions are reported to work, but older
  45.                ones do not.
  46.           PC Concepts Ergonomic - does not implement scan code set 3.
  47.  
  48.    EEEElllleeeeccccttttrrrriiiiccccaaaallll IIIInnnntttteeeerrrrffffaaaacccceeee
  49.      The PC keyboard uses a clocked serial I/O interface.  The format used is
  50.      one start bit (always false) followed by eight data bits, an odd parity
  51.      bit and one stop bit (always true).  The true data bits are at least
  52.      +2.4V and less than +5.5V, while the false data bits are at least 0V and
  53.      less than +0.7V.  While inactive, the clock and data lines are held high,
  54.      which indicates the keyboard has the right to send data.  When the system
  55.      wishes to send data to the keyboard it holds the clock low and then
  56.      proceeds with its transmission.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))                                                    ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))
  71.  
  72.  
  73.  
  74.      The pin assignments for the system keyboard connector are shown in the
  75.      following table:
  76.  
  77.                                       ------
  78.                                      / 5 3  \
  79.                                     | ---  1 |
  80.                                     | ---  2 |
  81.                                      \ 6 4  /
  82.                                       ------
  83.  
  84.                                   Pin Assignments
  85.                                 ___________________
  86.                                 Pin   Description
  87.                                 ___________________
  88.                                  1    Data
  89.                                  2    Reserved
  90.                                  3    Signal Ground
  91.                                  4    Power +5V
  92.                                  5    Clock
  93.                                  6    Reserved
  94.                                     ||||||||
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.    SSSSooooffffttttwwwwaaaarrrreeee IIIInnnntttteeeerrrrffffaaaacccceeee
  103.      System software interfaces to a PC keyboard controller that maintains the
  104.      clocked serial protocol with keyboard.  SGI uses keyboard scan code set
  105.      3, which sends a scan code on key press and a "break" code followed by
  106.      repeating the scan code.  The system software does all the processing
  107.      needed to support functions such as capitalization, control characters,
  108.      and numeric lock.  Variable speed hardware auto-repeat for a specified
  109.      set of characters is supported and is used in standalone mode, while IRIX
  110.      manages auto-repeat in software.  The default hardware auto-repeat begins
  111.      after 500 milliseconds and repeats at a rate of 10.9 characters per
  112.      second.  There are three lights labeled NUM LOCK, CAPS LOCK, and SCROLL
  113.      LOCK that are under software control.  The scan codes sent by the
  114.      standard 101 key American keyboard are in the following tables.  Note
  115.      that the legend names prefixed by two asterisks are only found on 102 key
  116.      International keyboards.
  117.  
  118.                         LLLLEEEEGGGGEEEENNNNDDDDSSSS VVVVSSSS KKKKEEEEYYYYCCCCOOOODDDDEEEESSSS IIIINNNN HHHHEEEEXXXXAAAADDDDEEEECCCCIIIIMMMMAAAALLLL
  119.                _____________________________________________________
  120.                          Legend                       Code
  121.                _____________________________________________________
  122.                           AKEY                         1C
  123.                           BKEY                         32
  124.                           CKEY                         21
  125.                           DKEY                         23
  126.                           EKEY                         24
  127.                           FKEY                         2B
  128.                           GKEY                         34
  129.                           HKEY                         33
  130.                           IKEY                         43
  131.                           JKEY                         3B
  132.                           KKEY                         42
  133.                                            |||||||||||||
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.                                                                         PPPPaaaaggggeeee 2222
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156. ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))                                                    ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))
  157.  
  158.  
  159.  
  160.                           LKEY                         4B
  161.                           MKEY                         3A
  162.                           NKEY                         31
  163.                           OKEY                         44
  164.                           PKEY                         4D
  165.                           QKEY                         15
  166.                           RKEY                         2D
  167.                           SKEY                         1B
  168.                           TKEY                         2C
  169.                           UKEY                         3C
  170.                           VKEY                         2A
  171.                           WKEY                         1D
  172.                           XKEY                         22
  173.                           YKEY                         35
  174.                           ZKEY                         1A
  175.                          ZEROKEY                       45
  176.                          ONEKEY                        16
  177.                          TWOKEY                        1E
  178.                         THREEKEY                       26
  179.                          FOURKEY                       25
  180.                          FIVEKEY                       2E
  181.                          SIXKEY                        36
  182.                         SEVENKEY                       3D
  183.                         EIGHTKEY                       3E
  184.                          NINEKEY                       46
  185.                                            |||||||||||||||||||||||||
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.                           LLLLEEEEGGGGEEEENNNNDDDDSSSS VVVVSSSS KKKKEEEEYYYYCCCCOOOODDDDEEEESSSS IIIINNNN DDDDEEEECCCCIIIIMMMMAAAALLLL
  211.                       ______________________________________
  212.                               Legend                Code
  213.                       ______________________________________
  214.                              LEFTCTRL                11
  215.                             CAPSLOCKKEY              14
  216.                            RIGHTSHIFTKEY             59
  217.                            LEFTSHIFTKEY              12
  218.                               ESCKEY                 08
  219.                               TABKEY                 0D
  220.                                ENTER                 5A
  221.                              SPACEKEY                29
  222.                            BACKSPACEKEY              66
  223.                               DELKEY                 64
  224.                            SEMICOLONKEY              4C
  225.                              PERIODKEY               49
  226.                              COMMAKEY                41
  227.                              QUOTEKEY"               52
  228.                           ACCENTGRAVEKEY~            0E
  229.                              MINUSKEY                4E
  230.                              SLASHKEY                4A
  231.                            BACKSLASHKEY              5C
  232.                              EQUALKEY                55
  233.                           LEFTBRACKETKEY             54
  234.                           RIGHTBRACKETKEY            5B
  235.                                               |||||||||||||||||||||||
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 3333
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))                                                    ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))
  269.  
  270.  
  271.  
  272.                            LEFTARROWKEY              61
  273.                            DOWNARROWKEY              60
  274.                            RIGHTARROWKEY             6A
  275.                             UPARROWKEY               63
  276.                                PAD0                  70
  277.                                PAD1                  69
  278.                                PAD2                  72
  279.                                PAD3                  7A
  280.                                PAD4                  6B
  281.                                PAD5                  73
  282.                                PAD6                  74
  283.                                PAD7                  6C
  284.                                PAD8                  75
  285.                                PAD9                  7D
  286.                                               ||||||||||||||
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.                           LLLLEEEEGGGGEEEENNNNDDDDSSSS VVVVSSSS KKKKEEEEYYYYCCCCOOOODDDDEEEESSSS IIIINNNN DDDDEEEECCCCIIIIMMMMAAAALLLL
  301.                      _________________________________________
  302.                              Legend                 Code
  303.                      _________________________________________
  304.                             PADPERIOD                71
  305.                             PADMINUS                 84
  306.                             PADENTER                 79
  307.                              LEFTALT                 19
  308.                             RIGHTALT                 39
  309.                             RIGHTCTRL                58
  310.                                F1                    07
  311.                                F2                    0F
  312.                                F3                    17
  313.                                F4                    1F
  314.                                F5                    27
  315.                                F6                    2F
  316.                                F7                    37
  317.                                F8                    3F
  318.                                F9                    47
  319.                                F10                   4F
  320.                                F11                   56
  321.                                F12                   5E
  322.                           PRINT.SCREEN               57
  323.                            SCROLL.LOCK               5F
  324.                               PAUSE                  62
  325.                              INSERT                  67
  326.                               HOME                   6E
  327.                              PAGEUP                  6F
  328.                                END                   65
  329.                             PAGEDOWN                 6D
  330.                             NUM.LOCK                 76
  331.                             PAD.SLASH                77
  332.                             PAD.ASTER                7E
  333.                             PAD.PLUS                 7C
  334.                            **INTL.left               13
  335.                           **INTL.right               53
  336.                                              ||||||||||||||||||||||||||||||||||
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.                                                                         PPPPaaaaggggeeee 4444
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380. ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))                                                    ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))
  381.  
  382.  
  383.  
  384.                                             |
  385.  
  386.                         KKKKEEEEYYYYCCCCOOOODDDDEEEESSSS IIIINNNN HHHHEEEEXXXXAAAADDDDEEEECCCCIIIIMMMMAAAALLLL VVVVSSSS LLLLEEEEGGGGEEEENNNNDDDDSSSS
  387.                   _______________________________________________
  388.                         Code                    Legend
  389.                   _______________________________________________
  390.                          07                       F1
  391.                          08                     ESCKEY
  392.                          0D                     TABKEY
  393.                          0E                 ACCENTGRAVEKEY
  394.                          0F                       F2
  395.                          11                    LEFTCTRL
  396.                          12                  LEFTSHIFTKEY
  397.                          13                   **INTL.left
  398.                          14                   CAPSLOCKKEY
  399.                          15                      QKEY
  400.                          16                     ONEKEY
  401.                          17                       F3
  402.                          19                     LEFTALT
  403.                          1A                      ZKEY
  404.                          1B                      SKEY
  405.                          1C                      AKEY
  406.                          1D                      WKEY
  407.                          1E                     TWOKEY
  408.                          1F                       F4
  409.                          21                      CKEY
  410.                          22                      XKEY
  411.                          23                      DKEY
  412.                          24                      EKEY
  413.                          25                     FOURKEY
  414.                          26                    THREEKEY
  415.                          27                       F5
  416.                          29                    SPACEKEY
  417.                          2A                      VKEY
  418.                          2B                      FKEY
  419.                          2C                      TKEY
  420.                          2D                      RKEY
  421.                          2E                     FIVEKEY
  422.                          2F                       F6
  423.                          31                      NKEY
  424.                          32                      BKEY
  425.                          33                      HKEY
  426.                                     ||||||||||||||||||||||||||||||||||||||
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.                           KKKKEEEEYYYYCCCCOOOODDDDEEEESSSS IIIINNNN DDDDEEEECCCCIIIIMMMMAAAALLLL VVVVSSSS LLLLEEEEGGGGEEEENNNNDDDDSSSS
  465.                       ______________________________________
  466.                           Code               Legend
  467.                       ______________________________________
  468.                            34                 GKEY
  469.                            35                 YKEY
  470.                            36                SIXKEY
  471.                            37                  F7
  472.                            39               RIGHTALT
  473.                                    |||||||
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.                                                                         PPPPaaaaggggeeee 5555
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490. ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))                                                    ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))
  491.  
  492.  
  493.  
  494.                            3A                 MKEY
  495.                            3B                 JKEY
  496.                            3C                 UKEY
  497.                            3D               SEVENKEY
  498.                            3E               EIGHTKEY
  499.                            3F                  F8
  500.                            41               COMMAKEY
  501.                            42                 KKEY
  502.                            43                 IKEY
  503.                            44                 OKEY
  504.                            45                ZEROKEY
  505.                            46                NINEKEY
  506.                            47                  F9
  507.                            49               PERIODKEY
  508.                            4A               SLASHKEY
  509.                            4B                 LKEY
  510.                            4C             SEMICOLONKEY
  511.                            4D                 PKEY
  512.                            4E               MINUSKEY
  513.                            4F                  F10
  514.                            52               QUOTEKEY"
  515.                            53             **INTL.right
  516.                            54            LEFTBRACKETKEY
  517.                            55               EQUALKEY
  518.                            56                  F11
  519.                            57             PRINT.SCREEN
  520.                            58               RIGHTCTRL
  521.                            59             RIGHTSHIFTKEY
  522.                            5A                 ENTER
  523.                            5B            RIGHTBRACKETKEY
  524.                            5C             BACKSLASHKEY
  525.                                    |||||||||||||||||||||||||||||||
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.                           KKKKEEEEYYYYCCCCOOOODDDDEEEESSSS IIIINNNN DDDDEEEECCCCIIIIMMMMAAAALLLL VVVVSSSS LLLLEEEEGGGGEEEENNNNDDDDSSSS
  557.                      ________________________________________
  558.                           Code                Legend
  559.                      ________________________________________
  560.                            5E                   F12
  561.                            5F               SCROLL.LOCK
  562.                            60              DOWNARROWKEY
  563.                            61              LEFTARROWKEY
  564.                            62                  PAUSE
  565.                            63               UPARROWKEY
  566.                            64                 DELKEY
  567.                            65                   END
  568.                            66              BACKSPACEKEY
  569.                            67                 INSERT
  570.                            69                  PAD1
  571.                            6A              RIGHTARROWKEY
  572.                            6B                  PAD4
  573.                            6C                  PAD7
  574.                            6D                PAGEDOWN
  575.                                     |||||||||||||||||
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.                                                                         PPPPaaaaggggeeee 6666
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602. ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))                                                    ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))
  603.  
  604.  
  605.  
  606.                            6E                  HOME
  607.                            6F                 PAGEUP
  608.                            70                  PAD0
  609.                            71                PADPERIOD
  610.                            72                  PAD2
  611.                            73                  PAD5
  612.                            74                  PAD6
  613.                            75                  PAD8
  614.                            76                NUM.LOCK
  615.                            77                PAD.SLASH
  616.                            79                PADENTER
  617.                            7A                  PAD3
  618.                            7C                PAD.PLUS
  619.                            7D                  PAD9
  620.                            7E                PAD.ASTER
  621.                            84                PADMINUS
  622.                                     ||||||||||||||||
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.                        CCCCOOOONNNNTTTTRRRROOOOLLLL BBBBYYYYTTTTEEEESSSS RRRREEEECCCCOOOOGGGGNNNNIIIIZZZZEEEEDDDD BBBBYYYY KKKKEEEEYYYYBBBBOOOOAAAARRRRDDDD
  639.           _______________________________________________________________
  640.           Byte                 Command                  Additional Data
  641.           _______________________________________________________________
  642.           0xED          Set Status Indicators             LED bitmask
  643.           0xEE                  Echo
  644.           0xEF             Invalid Command
  645.           0xF0       Select Alternate Scan Codes         Scan code set
  646.           0xF1             Invalid Command
  647.           0xF2                 Read ID
  648.           0xF3        Set Typematic Rate/Delay         Encoded rate/delay
  649.           0xF4                 Enable
  650.           0xF5             Default Disable
  651.           0xF6               Set Default
  652.           0xF7        Set All Keys - Typematic
  653.           0xF8        Set All Keys - Make/Break
  654.           0xF8           Set All Keys - Make
  655.           0xFA   Set All Keys - Typematic/Make/Break       Scan code
  656.           0xFB      Set All Key Type - Typematic           Scan code
  657.           0xFC      Set All Key Type - Make/Break          Scan code
  658.           0xFD         Set All Key Type - Make
  659.           0xFE                 Resend
  660.           0xFF                  Reset
  661.                |||||||||||||||||||||
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.                                                      |||||||||||||||||||||
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.                           CCCCOOOONNNNTTTTRRRROOOOLLLL BBBBYYYYTTTTEEEESSSS SSSSEEEENNNNTTTT BBBBYYYY KKKKEEEEYYYYBBBBOOOOAAAARRRRDDDD
  702.                  _________________________________________________
  703.                  DISPLAY DESIGNATION              LABEL
  704.                  _________________________________________________
  705.                         0x00           Key Detection Error/Overrun
  706.                       0x83 0xAB                Keyboard ID
  707.                         0xAA               BAT Completion Code
  708.                         0xFC                BAT Failure Code
  709.                         0xEE                      Echo
  710.                         0xF0                 Break (key-up)
  711.                         0xFA                Acknowledge (ACK)
  712.                                      |||||||||
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.                                                                         PPPPaaaaggggeeee 7777
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731. ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))                                                    ppppcccckkkkeeeeyyyybbbbooooaaaarrrrdddd((((7777))))
  732.  
  733.  
  734.  
  735.                         0xFE                     Resend
  736.                         0xFF           Key Detection Error/Overrun
  737.                                      ||
  738.  
  739. NNNNOOOOTTTTEEEE
  740.      Some Silicon Graphics systems use a serial keyboard interface (detailed
  741.      in _k_e_y_b_o_a_r_d(7)) that uses a different scan code set.  This difference may
  742.      break compatibility for some programs that operate with raw scan codes.
  743.  
  744. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  745.      keyboard(1), xmodmap(1), prom(1m), keyboard(7), pcmouse(7).
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.                                                                         PPPPaaaaggggeeee 8888
  792.  
  793.  
  794.  
  795.